﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDoo.Oil.Core.DTOs
{
    public class OrderApiDtoKey
    {
        /// <summary>
        /// 单据号
        /// </summary>
        [Required]
        public string oId { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string oType = "";
        /// <summary>
        /// 仓库
        /// </summary>
        public string oWarehouse = "";
        /// <summary>
        /// 供应商/客户
        /// </summary>
        public string oSupplier = "";
    }

    public class OrderApiDto
    {
        /// <summary>
        /// 单据号
        /// </summary>
        public string oId = "";
        /// <summary>
        /// 单据类型
        /// </summary>
        public string oType = "";
        /// <summary>
        /// 仓库
        /// </summary>
        public string oWarehouse = "";
        /// <summary>
        /// 供应商/客户
        /// </summary>
        public string oSupplier = "";
        public List<OrderApiDtoItem> List = new List<OrderApiDtoItem>();
    }
    public class OrderApiDtoItem
    {
        /// <summary>
        /// SN
        /// </summary>
        public string id = "";
        /// <summary>
        /// 商品名称
        /// </summary>
        public string name = "";
        /// <summary>
        /// 需要的总数量
        /// </summary>
        public int count = 0;
        /// <summary>
        /// 状态
        /// </summary>
        public int status = 0;
        /// <summary>
        /// 型号规格
        /// </summary>
        public string model = "";
        /// <summary>
        /// 信息列表
        /// </summary>
        public string[] list = new string[] { };
    }
}
